package a_exception.e_finally;
/*
    finally 和 return的执行顺序

    情况一: try 和 catch 都带有return
        先执行finally中的内容,在执行return.
 */
public class ReturnDemo01 {

    public static int show(){
        try{
            return 1;
        }finally {
            System.out.println("finally执行了!");
        }
    }


    public static void main(String[] args) {

        int show = show();
        System.out.println(show);

    }
}
